//
//  ViewController.m
//  XYSynButton
//
//  Created by Daniel on 15-1-8.
//  Copyright (c) 2015年 Daniel. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(IBAction)onClick:(UIButton*)sender{
    
    if(sender.tag == 0){
        self.XYButton.status = kXYSynButtonStatusNone;
    }
    else if(sender.tag == 1){
        self.XYButton.status = kXYSynButtonStatusDownloading;
    }
    else if(sender.tag == 2){
        
        self.XYButton.status = kXYSynButtonStatusFinish;
    }
    
}

@end
